From: Florian Müllner Date: Thu, 19 Mar 2020 17:20:27 +0000 (+0100) Subject: ci: Build Extensions flatpak bundle X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~751^2^2~25 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=aafec16f4975ebfb4f14c59c50251f3df7ee8ea9;p=gnome-shell.git ci: Build Extensions flatpak bundle GNOME apps use (or are encouraged to use) flatpak in their CI setup[0], so do that for the Extensions app as well and get: - test building the flatpak - produce a bundle for download and testing - publish the build in gnome-nightly [0] https://gitlab.gnome.org/GNOME/Initiatives/wikis/DevOps-with-Flatpak https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1133 --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c7f925cc0..a3bc34250 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,13 @@ +include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml' + stages: - review - build - test + - deploy variables: + BUNDLE: "extensions-git.flatpak" JS_LOG: "js-report.txt" POT_LOG: "pot-update.txt" @@ -110,3 +114,24 @@ test-pot: ' | tee $POT_LOG - (! grep -q . $POT_LOG) <<: *only_default + +flatpak: + stage: build + variables: + SUBPROJECT: "subprojects/extensions-app" + # Your manifest path + MANIFEST_PATH: "$SUBPROJECT/build-aux/flatpak/org.gnome.Extensions.json" + RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo" + FLATPAK_MODULE: "gnome-extensions-app" + APP_ID: "org.gnome.Extensions" + MESON_ARGS: "$SUBPROJECT" + extends: .flatpak + before_script: + - flatpak run --command=$SUBPROJECT/generate-translations.sh + --filesystem=host org.gnome.Sdk//master + <<: *only_default + +nightly: + extends: '.publish_nightly' + variables: + BUNDLES: '$BUNDLE'